﻿namespace zijian666.Data;

/// <summary>
/// 异常上下文
/// </summary>
public class DbExceptionContext(IDbConnection connection, Exception exception, long timestamp, CancellationToken cancellationToken)
    : DbInterceptorContext(connection, timestamp, cancellationToken)
{
    public ConnectionScope? Scope { get; init; } = default!;
    public Exception Exception { get; } = exception;
    public string File { get; internal set; } = default!;
    public string Member { get; internal set; } = default!;
    public int Line { get; internal set; } = default!;

    internal bool Skip { get; set; } = default!;
}
